#!/usr/bin/python
from urllib import request as req
from bs4 import BeautifulSoup as bs

def itetag(tag):
    soup = bs(tag, 'html.parser')
    result = {}
    print("开始解析第下一轮标签")
    for childTag in soup.contents:
        if childTag.name != None:
            if childTag.string == None:
                itetag(str(childTag))
            result[childTag.name] = childTag.string
            print(childTag.name)
    return result


